#include "character.h"


using namespace std;


map<string, shared_ptr<Character::Type>> Character::Type::nameMap;


int Character::Type::defaultStartingActionPoints = 1;


void Character::Type::add(shared_ptr<Type> type)
{
	nameMap[type->name] = type;
}


shared_ptr<Character::Type> Character::Type::get(string name)
{
	return nameMap[name];
}


Character::Character() :
	age(0),
	x(0),
	y(0),
	level(0)
{
}


void Character::Type::addStratModelID(string factionID, string modelID)
{
	stratModelMap[factionID].push_back(modelID);
}


string Character::Type::getStratModelID(string factionID, int level)
{
	return stratModelMap[factionID][level];
}